<?php
//测试引导文件
require_once dirname( __FILE__ ) . '/../../Bootstrap.php';

//定义测试入口， 可以实现批量测试
if( !defined('PHPUnit_MAIN_METHOD') ) 
{
    define('PHPUnit_MAIN_METHOD', 'Unit_AllTests::main');
}

class Unit_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run( self::suite() );
    }

    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('ProjectY - Unit AllTests');
        
        $suite->addTestSuite( 'Unit_User_InfoTest' );
        $suite->addTestSuite( 'Unit_Friend_ListTest' );
        $suite->addTestSuite( 'Unit_Friend_RequestTest' );
        $suite->addTestSuite( 'Unit_Friend_RecommendTest' );
        $suite->addTestSuite( 'Unit_Notify_ModelTest' );
        $suite->addTestSuite( 'Unit_Feed_HelperTest' );
        return $suite;
    }
}

if( PHPUnit_MAIN_METHOD == 'Unit_AllTests::main') 
{
    Unit_AllTests::main();
}